﻿using System.Runtime.Serialization;

namespace HelenServer.Grpc.Contracts;

[DataContract]
public class UserGrpcModel
{
    [DataMember(Order = 1)]
    public string Username { get; set; } = null!;

    [DataMember(Order = 2)]
    public string Password { get; set; } = null!;

    [DataMember(Order = 3)]
    public string? Avatar { get; set; }

    [DataMember(Order = 4)]
    public string? Name { get; set; }

    [DataMember(Order = 5)]
    public int Sex { get; set; }

    [DataMember(Order = 6)]
    public int? Department { get; set; }

    [DataMember(Order = 7)]
    public int? Position { get; set; }

    [DataMember(Order = 8)]
    public string? Roles { get; set; }

    [DataMember(Order = 9)]
    public int? JobNumer { get; set; }

    [DataMember(Order = 10)]
    public DateTime? InductionDate { get; set; }

    [DataMember(Order = 11)]
    public int Status { get; set; }

    [DataMember(Order = 12)]
    public string? Email { get; set; }

    [DataMember(Order = 13)]
    public string? LastIp { get; set; }

    [DataMember(Order = 14)]
    public DateTime? LastLoginTime { get; set; }
}